<div class="layout_visits_widget_global">
<ul>
  <?php foreach( $this->visits as $visit ): ?>
  <?php $user = Engine_Api::_()->user()->getUser($visit->profile_id); ?>
    <li>
      <?php echo $this->htmlLink($user->getHref(), $this->itemPhoto($user, 'thumb.icon'), array('class' => 'member_thumb')) ?>
      <div class='member_info'>
        <div class='member_name'>
          <?php echo $this->htmlLink($user->getHref(), $user->getTitle()) ?>
        </div>
        <div class='member_date'>
        <?php echo $this->timestamp($visit->visit_date) ?>
        </div>
        <div class='member_date'>
          <?php echo $this->translate(array('%s view', '%s views', $visit->visit_count), $this->locale()->toNumber($visit->visit_count)) ?>
        </div>
      </div>
    </li>
  <?php endforeach; ?>
    <li class="visits_view_all"><a href="visits/whoiviewed"><?php echo $this->translate('View all Visits');?></a></li>
</ul>
</div>